var JPush = require("jpush-sdk")
var client = JPush.buildClient('94f42cd6ade2294107ab3ffd', '73bd28d8b38fd57ba2b6649c', null, false)

//easy push   push.options = {'apns_production': False};
exports.pushCress = function(var1) {
    client.push().setPlatform(JPush.ALL)
    .setAudience(JPush.ALL)
    .setNotification('Hi, JPush', JPush.ios(var1 ,"sasasas",1))
    .setOptions(null, null, null, true, null)
    .send(function(err, res) {
        if (err) {
            console.log(err.message)
        } else {
            console.log('Sendno: ' + res.sendno)
            console.log('Msg_id: ' + res.msg_id)
        }
    });
}
